package com.lq.eureka;


import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Component
@EnableBinding(IStreamClient.class)
public class StreamReceiver {

    @StreamListener(value = "in")
    public void process(Object o) {
        System.out.println("stream receive is :" + (String) o);
    }
}
